.chat-page {
  height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: #f7f8fa;

  .rv-nav-bar {
    background-color: #fff;
    border-bottom: 1px solid #eee;

    &__right {
      .rv-button {
        height: 28px;
        padding: 0 12px;
      }
    }
  }

  .chat-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;

    .messages {
      flex: 1;
      overflow-y: auto;
      padding: 16px;

      .message-item {
        margin-bottom: 16px;
        display: flex;

        &.sent {
          flex-direction: row-reverse;

          .message-content {
            margin-left: 48px;
            margin-right: 0;
            
            .text {
              background-color: #07c160;
              color: #fff;
              border-radius: 12px 4px 12px 12px;
            }

            .time {
              text-align: right;
            }
          }
        }

        &.received {
          .message-content {
            margin-right: 48px;
            margin-left: 0;

            .text {
              background-color: #fff;
              color: #323233;
              border-radius: 4px 12px 12px 12px;
            }
          }
        }

        .message-content {
          max-width: 70%;

          .text {
            padding: 12px 16px;
            font-size: 14px;
            line-height: 1.4;
            word-break: break-word;
          }

          .time {
            font-size: 12px;
            color: #969799;
            margin-top: 4px;
          }

          .rv-image {
            border-radius: 8px;
            overflow: hidden;
          }
        }
      }
    }

    .quick-emojis {
      background-color: #fff;
      padding: 8px;
      border-top: 1px solid #eee;
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
      max-height: 120px;
      overflow-y: auto;

      .quick-emoji-item {
        width: 40px;
        height: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 24px;
        cursor: pointer;
        border-radius: 4px;
        transition: background-color 0.2s;

        &:hover {
          background-color: #f5f5f5;
        }

        &:active {
          background-color: #e8e8e8;
        }
      }
    }

    .input-area {
      background-color: #fff;
      padding: 8px 16px;
      border-top: 1px solid #eee;

      .rv-field {
        &__left-icon {
          margin-right: 8px;
        }

        &__right-icon {
          margin-left: 8px;
        }
      }
    }
  }

  .rv-popup {
    &__content {
      border-radius: 16px 16px 0 0;
    }
  }
} 